package designMode.builder;

/**
 * @Description
 * @Author 肖地洋
 * @Date 2022/8/13 15:59
 */
public class LowComputer implements Bulider{

    private Computer computer = new Computer();
    @Override
    public void buildCpu() {
        computer.setCpu("低配 CPU");
    }

    @Override
    public void buildMemory() {
        computer.setMemory("低配 memory");
    }

    @Override
    public void buildDisk() {
        computer.setDisk("低配 disk");

    }

    @Override
    public void buildMainboard() {
        computer.setMainboard("低配 mainboard");

    }

    @Override
    public void buildPower() {
        computer.setPower("低配 power");

    }

    @Override
    public Computer createCompoter() {
        return computer;
    }
}
